/*
 * Copyright (C), 2002-2013, 苏宁易购电子商务有限公司
 * FileName: ExchangeOrder.java
 * Author:   12070644@cnsuning.com
 * Date:     2012-12-22 上午00:00:00
 */
package com.suning.sawp.po.exchange;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 实体类发券会员订单
 *
 * @author 12070644@cnsuning.com
 */
@Entity(name = "exchange_order")
public class ExchangeOrder implements Serializable {
    /**
     * Serial UID
     */
    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 订单创建时间
     */
    private java.util.Date createTime;
    /**
     * 会员手机号
     */
    private String mobileNo;
    /**
     * 商品编码
     */
    private String cmmdtyCode;
    /**
     * 商品名称
     */
    private String cmmdtyName;
    /**
     * 商品数量
     */
    private Integer cmmdtyNum;
    /**
     * 商品图片url
     */
    private String cmmdtyPic;
    /**
     * 预估报价
     */
    private java.math.BigDecimal evaluatePrice;

    /**
     * 会员编号
     */
    private String custNum;

    /**
     * Get orderNo
     *
     * @return orderNo
     */
    @Id
    @GeneratedValue(strategy = GenerationType.TABLE)
    @Column(name = "order_no")
    public String getOrderNo() {
        return this.orderNo;
    }

    /**
     * Set orderNo
     *
     * @param orderNo 订单号
     */

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * Get createTime
     *
     * @return createTime
     */
    @Column(name = "create_time")
    public java.util.Date getCreateTime() {
        return this.createTime;
    }

    /**
     * Set createTime
     *
     * @param createTime 订单创建时间
     */

    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }

    /**
     * Get mobileNo
     *
     * @return mobileNo
     */
    @Column(name = "mobile_no")
    public String getMobileNo() {
        return this.mobileNo;
    }

    /**
     * Set mobileNo
     *
     * @param mobileNo 会员手机号
     */

    public void setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
    }

    /**
     * Get cmmdtyCode
     *
     * @return cmmdtyCode
     */
    @Column(name = "cmmdty_code")
    public String getCmmdtyCode() {
        return this.cmmdtyCode;
    }

    /**
     * Set cmmdtyCode
     *
     * @param cmmdtyCode 商品编码
     */

    public void setCmmdtyCode(String cmmdtyCode) {
        this.cmmdtyCode = cmmdtyCode;
    }

    /**
     * Get cmmdtyName
     *
     * @return cmmdtyName
     */
    @Column(name = "cmmdty_name")
    public String getCmmdtyName() {
        return this.cmmdtyName;
    }

    /**
     * Set cmmdtyName
     *
     * @param cmmdtyName 商品名称
     */

    public void setCmmdtyName(String cmmdtyName) {
        this.cmmdtyName = cmmdtyName;
    }

    /**
     * Get cmmdtyNum
     *
     * @return cmmdtyNum
     */
    @Column(name = "cmmdty_num")
    public Integer getCmmdtyNum() {
        return this.cmmdtyNum;
    }

    /**
     * Set cmmdtyNum
     *
     * @param cmmdtyNum 商品数量
     */

    public void setCmmdtyNum(Integer cmmdtyNum) {
        this.cmmdtyNum = cmmdtyNum;
    }

    /**
     * Get cmmdtyPic
     *
     * @return cmmdtyPic
     */
    @Column(name = "cmmdty_pic")
    public String getCmmdtyPic() {
        return this.cmmdtyPic;
    }

    /**
     * Set cmmdtyPic
     *
     * @param cmmdtyPic 商品图片url
     */

    public void setCmmdtyPic(String cmmdtyPic) {
        this.cmmdtyPic = cmmdtyPic;
    }

    @Column(name = "evaluate_price")
    public java.math.BigDecimal getEvaluatePrice() {
        return evaluatePrice;
    }

    public void setEvaluatePrice(java.math.BigDecimal evaluatePrice) {
        this.evaluatePrice = evaluatePrice;
    }

    @Column(name = "cust_num")
    public String getCustNum() {
        return custNum;
    }

    public void setCustNum(String custNum) {
        this.custNum = custNum;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ExchangeOrder{");
        sb.append(" orderNo='").append(orderNo).append('\'');
        sb.append(", createTime=").append(createTime);
        sb.append(", mobileNo='").append(mobileNo).append('\'');
        sb.append(", cmmdtyCode='").append(cmmdtyCode).append('\'');
        sb.append(", cmmdtyName='").append(cmmdtyName).append('\'');
        sb.append(", cmmdtyNum=").append(cmmdtyNum);
        sb.append(", cmmdtyPic='").append(cmmdtyPic).append('\'');
        sb.append(", evaluatePrice=").append(evaluatePrice);
        sb.append(", custNum='").append(custNum).append('\'');
        sb.append('}');
        return sb.toString();
    }

}
